home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / ophel001.swf / scripts / DefineButton2_993 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-08-12  |  1.6 KB  |  57 lines

  1. on(release){
  2.    if(eval("/Variables:PositionPerso") eq "Vitrail")
  3.    {
  4.       loadVariablesNum("/arcane/tracking/tracking.html?episode=7&stage=5",0);
  5.       if(eval("/Variables:LunetteMise") == false)
  6.       {
  7.          set("/Variables:LunetteMise",true);
  8.          tellTarget(_root)
  9.          {
  10.             gotoAndStop("Sc07");
  11.          }
  12.       }
  13.       else
  14.       {
  15.          set("/Variables:LunetteMise",false);
  16.          set("/Variables:VaVers01","Vitrail");
  17.          tellTarget(_root.SFX)
  18.          {
  19.             gotoAndStop("StopVitrail");
  20.          }
  21.          tellTarget(_root)
  22.          {
  23.             gotoAndStop("Sc07b");
  24.          }
  25.       }
  26.    }
  27.    if((eval("/Variables:PositionPerso") eq "PontDebut2" or eval("/Variables:PositionPerso") eq "PontMilieu2" or eval("/Variables:PositionPerso") eq "PontFin2") and eval("/Variables:ArtefactSorti") == true and eval("/Variables:ArbalettePrescott") == false)
  28.    {
  29.       loadVariablesNum("/arcane/tracking/tracking.html?episode=7&stage=32",0);
  30.       if(eval("/Variables:ArtefactVue") == false)
  31.       {
  32.          tellTarget(_root.ClipVoix)
  33.          {
  34.             gotoAndStop("Alcove");
  35.             play();
  36.          }
  37.       }
  38.       if(eval("/Variables:LunetteMise") == false)
  39.       {
  40.          set("/Variables:LunetteMise",true);
  41.          tellTarget(_root)
  42.          {
  43.             gotoAndStop("Sc07");
  44.          }
  45.       }
  46.       else
  47.       {
  48.          set("/Variables:LunetteMise",false);
  49.          tellTarget(_root)
  50.          {
  51.             set("/Variables:VaVers01",eval("/Variables:PositionPerso"));
  52.             gotoAndStop("Sc07b");
  53.          }
  54.       }
  55.    }
  56. }
  57.